package com.fintecher.service.serviceImpl;

import com.fintecher.dao.IRolePowerDao;
import com.fintecher.pojo.Role;
import com.fintecher.service.IRolePowerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/2/8.
 */
@Service("rolePowerService")
public class RolePowerServiceImpl implements IRolePowerService {
    @Resource
    private IRolePowerDao rolePowerDao;

    public boolean addPowerRole(Role role) {
        if(role != null){
            rolePowerDao.addPowerRole(role);
        }
        return true;
    }
}
